package com.结构型模型.I装饰者模式;

/**
 * 快餐抽象类(抽象构件（Component）角色 ：定义一个抽象接口以规范准备接收附加责任的对象)
 * @author zhangjiawen
 * @Date: 2022/6/13 17:40
 */
public abstract class FastFood {

    private float price;
    private String desc;
    public FastFood() {}
    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }
    public abstract float cost();//获取价格


    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
